<template>
    <div style="background-color: aquamarine;">
        <button @click="num--">-</button>{{ num }}<button @click="num++">+</button>
    </div>
</template>
<script>
export default {
    data(){
        return{
            num:1
        }
    }
}
</script>